const getters = {
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  isUserRole: state => {
	  let userList = [
		  "zhangpeng",
		  "shenanfeng",
		  "zhangxiangwen",
		  "wulin",
		  "wangchao",
		  "huangyi",
		  "chenzhengwei",
		  "fanminghua",
		  "jikaimin",
		  "yutingting",
		  "hanlei",
		  "daihongwei",
		  "zhangkaile"
	  ];
	  return userList.includes(state.user.name)
  }
}
export default getters
